/*
 * @Author       : huangzb
 * @Date         : 2024-01-25 20:01:08
 * @LastEditors  : huangzb
 * @LastEditTime : 2024-03-04 12:03:13
 * @Description  : file content
 * @FilePath     : \PcBackend\src\api\productsManage\index.js
 */
//商品管理1

import api from "@/api";

/**
 * @name 获取商品数据
 * @author
 * @time
 */

//查询商品信息
export function queryProductsInfoApi(params) {
    return api.get("/tube/admin/queryProducts", { params });
}

//新增商品信息
export function createProductsInfoApi(data) {
    return api.post("/tube/admin/createProducts", data);
}

//更新商品信息
export function updateProductsInfoApi(data) {
    return api.put("/tube/admin/updateProducts", data);
}

//删除商品信息
export function deleteProductsInfoApi(params) {
    return api.delete("/tube/admin/deleteProducts", { params });
}
